package com.tmt.im.common.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Getter;
import lombok.Setter;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/8/29 15:33
 * @Version 1.0
 **/
@Getter
@Setter
@Tag(name = "分页查询请求对象", description = "分页查询请求对象")
public class QueryMembersRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = -2330878342249675847L;

    private Long tid;

    @Schema(name = "memberType", description = "会员类型(0（默认）：查询全部成员；1：仅查询群主和管理员；2：仅查询普通成员)")
    private Integer memberType = 0;

    @Schema(name = "bannedType", description = "禁言类型(0（默认）：查询全部成员；1：仅查询禁言成员；2：仅查询非禁言成员。)")
    private Integer bannedType = 0;

    @Schema(name = "pageIndex", description = "查询页序号参数，从0开始。")
    private Integer pageIndex;

    @Schema(name = "pageSize", description = "查询页大小参数")
    private Integer pageSize;

    @Schema(name = "descending", description = "是否按加入时间倒序排序？")
    private Boolean descending;
}
